﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Volo.Abp.Domain.Entities;

namespace MetroManagement
{
    /// <summary>
    /// 站点类
    /// </summary>
    public class Station: Entity<int>
    {
        /// <summary>名称</summary>
        public string Name { get; protected set; }

        /// <summary>拥挤度</summary>
        public int Crowd { get; protected set; }

        /// <summary>城市Id</summary>
        public int CityId { get; protected  set; }

        /// <summary>创建人</summary>
        public string CreateBy { get; protected set; }

        /// <summary>创建时间</summary>
        public DateTime CreateTime { get; protected set; }

        /// <summary>更新人</summary>
        public string UpdateBy { get; protected set; }

        /// <summary>更新时间</summary>
        public DateTime UpdateTime { get; protected set; }

        /// <summary>城市</summary>
        [ForeignKey("CityId")]
        public City City { get; protected set; }

        /// <summary>线路集合</summary>
        public IList<LineStation> LineStations { get; protected set; }

        private Station() { }
    }
}